﻿
@{
    ViewBag.Title = "NewsDetail";
    Layout = "~/Views/Shared/_LayoutPortal.cshtml";
}

@section css{

    <style>
        .newstitle {
            width: 800px;
            margin: 20px auto;
            text-align: center;
            font-size: 20px;
            border-bottom: 1px solid rgb(225 225 215);
            padding-bottom: 20px;
        }

        .newsbody {
            width: 800px;
            margin: 20px auto;
        }
    </style>
}
<div ng-controller="NewsCenterController" ng-cloak ng-init="Id='@(Request.QueryString["Id"].IsEmpty() ? "" : Request.QueryString["Id"])';
     type='@(Request.QueryString["type"].IsEmpty() ? "" : Request.QueryString["type"])';
     GetNoticeDetail(Id);
     ">
    <div class="page-header">
        <h4 class="page-title">{{NewsDetail.TypeName}}</h4>
        <ul class="breadcrumbs">
            <li class="nav-home">
                <a href="#">
                    <i class="flaticon-home"></i>
                </a>
            </li>
            <li class="separator">
                <i class="flaticon-right-arrow"></i>
            </li>
            <li class="nav-item">
                <a href="#">{{NewsDetail.TypeName}}</a>
            </li>

        </ul>
    </div>

    <div class="row">
        <div class="col-md-12">
            <div class="card">
                <div class="card-body">
                    <div class="row">
                        <div class="col-lg-12">
                            <div class="newstitle">
                                {{NewsDetail.NoticeTitle}}
                            </div>
                        </div>
                        <div class="col-lg-12">
                            <div class="newsbody" id="newscontent">
                            </div>
                        </div>
                        <div class="col-lg-12" ng-repeat="x in NewsDetail.ImageList">
                            <div class="newsbody" id="newscontent">
                                <img ng-src="{{x.FilePath}}" style="width:100%;" />
                            </div>
                        </div>
                        <div class="col-lg-12" ng-repeat="x in NewsDetail.VideoList">
                            <div class="newsbody" id="newscontent">
                                <video autoplay controls>
                                    <source src="{{x.FilePath}}" type="video/mp4">
                                    您的浏览器不支持video标签。
                                </video>
                            </div>
                        </div>
                        <div class="col-lg-12" ng-repeat="x in NewsDetail.FileList">
                            <div class="newsbody" id="newscontent">
                                <p><a href="../download/DownloadFile?FileId={{x.FileId}}">{{x.FileName}}</a></p>
                            </div>
                        </div>
                        <div class="col-lg-12">
                            <div class="newsbody">
                                {{NewsDetail.PublishTime|JSONDate:'yyyy-MM-dd'}}
                            </div>
                        </div>
                    </div>
                </div>

            </div>
        </div>
    </div>
</div>







@section Js{
    <script src="~/Bussiness/js/pg/NewsCenter.js?v=@DateTime.Now.ToString("yyMMddHHmm")"></script>
}


